package com.site.wisdom_construction.service.personnelModule;

import com.site.wisdom_construction.dao.personnelModule.ProjectDao;
import com.site.wisdom_construction.entity.personnelModule.Project;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

/**
 * @Author daiyifei
 * @Date 2022/1/15
 * @Description
 */
@Service
public class ProjectService implements ProjectDao {
    @Autowired
    private ProjectDao projectDao;

    @Override
    public int insertProject(Map map) {
        return projectDao.insertProject(map);
    }

    @Override
    public int deleteProject(Map map) {
        return projectDao.deleteProject(map);
    }

    @Override
    public int updateProject(Map map) {
        return projectDao.updateProject(map);
    }

    @Override
    public List<Project> findProjectByPage(Map map) {
        return projectDao.findProjectByPage(map);
    }

    @Override
    public long Total(Map map) {
        return projectDao.Total(map);
    }

    @Override
    public List<Project> findProjectById(Map map) {
        return projectDao.findProjectById(map);
    }

    @Override
    public Project findProjectByProjectId(Map map) {
        return projectDao.findProjectByProjectId(map);
    }
}
